{% extends "base.html" %}
{% block content %}
{% include 'flash.html' %}
<div class="well well-large" style="height: 140px;">
<div class="pull-right">
<img src="#" alt="" class="img-polaroid">
</div>
<h1>{{user.username}}</h1>
{% if user.about_me %}<p>{{user.about_me}}</p>{% endif %}
{% if user.last_seen %}<p><em>Last seen on: {{user.last_seen}}</em></p>
{% endif %}
{% if user.id == g.user.id %}
<a href="{{url_for('edit')}}">修改你的个人资料</a>
{% endif %}
</div>
<div class="well">
{% for post in posts.items %}
{% include 'manage.html' %}
{% endfor %}
</div>
<ul class="pager">
   {% if posts.has_prev %}
   	 <li class="previous"><a href="{{ url_for('index', page = posts.prev_num) }}">上一页</a></li>
    {% else %}
    	<li class="previous disabled"><a href="#">上一页</a></li>
    {% endif %}
    {% if posts.has_next %}
    	<li class="next"><a href="{{ url_for('index', page = posts.next_num) }}">下一页</a></li>
    {% else %}
    	<li class="next disabled"><a href="#">下一页</a></li>
    {% endif %}
</ul>
{% endblock %}

